package com.wzxy.ping.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.wzxy.ping.bean.Function;
import com.wzxy.ping.bean.User;
import com.wzxy.ping.dao.FunctionDao;

@Repository
public class FunctionDaoImpl extends BaseDao<Function> implements FunctionDao{

	@Override
	public List<Function> getFuntionByRole(String role) {
		StringBuffer hql = new StringBuffer("from Function where 1 = 1");
		hql.append(" and roleName = '" + role + "'");
		List<Function> list = list(hql.toString(), null);
		return list;
	}

}
